﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESF.General.MVP;
using ESF.SSO.Core.BusinessLogic;

#endregion


namespace ESF.SSO.Presenter.Client.ContactUs
{
	public class ContactUsLogPresenter : BaseBrowsePagedPresenter<ESF.SSO.Core.Entities.ContactUs, IContactUsLogViewer>
	{
		#region Constructor

		public ContactUsLogPresenter(IContactUsLogViewer pViewer) : base(pViewer) { }
		
		#endregion
		
		
		#region Funciones

		protected override General.Entity.BrowseResults<ESF.SSO.Core.Entities.ContactUs> GetPagedResults(General.Entity.PaggingInfo pPaggingInfo, out ESF.SSO.Core.Entities.ContactUs pFilter)
		{
			int readyCount, pendingCount;


			pFilter = new ESF.SSO.Core.Entities.ContactUs()
			{
				filWithResponse = _Viewer.filWithResponse,
				SenderEmail = _Viewer.filSenderEmail,
				ContactUsTypeID = new General.Entity.BasicReference() { ID = _Viewer.filContactUsTypeID }
			};

			return CtrlContactUs.Browse(pFilter, pPaggingInfo, out readyCount, out pendingCount);
		}

		#endregion
	}
}
